﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TTMarketing.UserControl
{
    public partial class ucLienHe : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            try
            {
                string[] mail = { "thiepnd@tantinh.net" };
                String str = "<div>Họ Tên :" + this.txtFullName.Text + "<br />Địa chỉ :" + this.txtEmail.Text + "<br />Điện thoại :&nbsp;" + this.txtPhone.Text + "<br />Email :" + this.txtEmail.Text + "<br />Nội dung :" + this.txtMessage.Text + "</div>";
                clsBSSendMail.sendMail(mail, this.txtFullName.Text, str);
                Response.Redirect("~/cam-on.aspx");
            }
            catch (Exception)
            {
            }
        }
    }
}